//
//  ZSLTextField.swift
//  micro_blog
//
//  Created by Mac on 16/9/19.
//  Copyright © 2016年 Mac. All rights reserved.
//

import UIKit

@IBDesignable
class ZSLTextField: UITextField {

    @IBInspectable var borderColor: UIColor? {
        
        didSet{
            
        self.layer.borderColor = borderColor?.cgColor
            
        }
    }
    
    @IBInspectable var borderWidth: CGFloat = 0 {
        
        didSet{
            
            self.layer.borderWidth = borderWidth
            
        }
    }
    
    @IBInspectable var cornerRadius: CGFloat = 0 {
        
        didSet{
            
            self.layer.cornerRadius = cornerRadius
            
            self.layer.masksToBounds = true
            
        }
    }

}
